from flask import Flask


server = Flask("app")

data = {
     "name":"上仙",
    "sex": 1,
    "intro":"沈阳理工大学大一新生，学的是通信！",
    "about":"法力无边，道法自然，言出法随，与世长存！！！！"
}

@server.route('/')
def index():
     return'<h1>只要你开心，无论和谁，无论在哪！<h1>'

     
@server.route('/info')
def info():
     return data

server.run('127.0.0.1',port=8080)